package com.example.userservice.model.event;

import lombok.Data;
import java.io.Serializable;

/**
 * 操作日志事件
 */
@Data
public class OperationLogEvent implements Serializable {
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 操作类型
     */
    private String action;
    
    /**
     * 客户端IP
     */
    private String ip;
    
    /**
     * 操作详情
     */
    private String detail;
    
    public OperationLogEvent() {}
    
    public OperationLogEvent(Long userId, String action, String ip, String detail) {
        this.userId = userId;
        this.action = action;
        this.ip = ip;
        this.detail = detail;
    }
}